<template>
  <div id="backtop" class="up">
    <div><i class="iconfont icon-rising"></i></div>
  </div>
</template>

<script>
export default {
  // 组件名称
  name: "backtop", // 组件参数 接收来自父组件的数据
  props: {}, // 局部注册的组件
  components: {}, // 组件状态值
  data() {
    return {};
  },
  methods: {},
};
</script>
<style scoped>
@import "~assets/css/font/iconfont.css";
.up {
  position: fixed;
  bottom: 70px;
  right: 20px;
  border-radius: 50%;
  text-align: center;
  height: 40px;
  width: 40px;
  line-height: 40px;
  background-color: #fff;
}
i {
  font-size: 20px;
  color: red;
}
</style>